import Layout from '@/layouts';
import ListIcon from '@/assets/assets-slide-list.svg';
import FormIcon from '@/assets/assets-slide-form.svg';
import DetailIcon from '@/assets/assets-slide-detail.svg';

export default [
  {
    path: '/order',
    name: 'order',
    component: Layout,
    redirect: '@/pages/ordermanagement',
    meta: { title: '订单管理', icon: ListIcon },
    children: [
      {
        path: 'ordermanagement',
        name: 'listBase',
        component: () => import('@/pages/ordermanagement/ordermanagement.vue'),
        meta: { title: '订单列表详情' },
      },
      // {
      //   path: 'Detailsdata',
      //   name: 'listBase',
      //   component: () => import('@/pages/Detailsdata/Detailsdata.vue'),
      //   meta: { title: '订单数据详情' },
      // },
      // {
      //   path: 'card',
      //   name: 'listCard',
      //   component: () => import('@/pages/list/card/index.vue'),
      //   meta: { title: '卡片列表页' },
      // }
    ],
  },
  {
    path: '/form',
    name: 'form',
    component: Layout,
    redirect: '/form/base',
    meta: { title: '约局管理', icon: FormIcon },
    children: [
      {
        path: 'Aboutagency',
        name: 'Aboutagency',
        component: () => import('@/pages/Aboutagency/Aboutagency.vue'),
        meta: { title: '约局列表' },
      },
      // {
      //   path: 'step',
      //   name: 'formStep',
      //   component: () => import('@/pages/aboutbureau/aboutbureau.vue'),
      //   meta: { title: '约局数据' },
      // },
    ],
  },
  {
    path: '/detail',
    name: 'detail',
    component: Layout,
    redirect: '/detail/base',
    meta: { title: '剧本管理', icon: DetailIcon },
    children: [
      {
        path: 'scriptdata',
        name: 'detailBase',
        component: () => import('@/pages/scriptdata/scriptdata.vue'),
        meta: { title: '剧本列表' },
      },
      {
        path: 'addscript',
        name: 'addscript',
        component: () => import('@/pages/scriptdata/addscript/addscript.vue'),
        meta: { title: '新增剧本' },
      },
    ],
  },
  {
    path: '/result',
    name: 'result',
    component: Layout,
    redirect: '/result/success',
    meta: { title: '员工管理', icon: 'check-circle' },
    children: [
      {
        path: 'success',
        name: 'resultSuccess',
        component: () => import('@/pages/Staffmanagement/Staffmanagement.vue'),
        meta: { title: '员工列表' },
      },
      {
        path: 'managementtime',
        name: 'resultFail',
        component: () => import('@/pages/managementtime/managementtime.vue'),
        meta: { title: '员工工作时间管理' },
      },
      // {
      //   path: '403',
      //   name: 'warning403',
      //   component: () => import('@/pages/result/403/index.vue'),
      //   meta: { title: '无权限' },
      // },
      // {
      //   path: '404',
      //   name: 'warning404',
      //   component: () => import('@/pages/result/404/index.vue'),
      //   meta: { title: '访问页面不存在页' },
      // },
      // {
      //   path: '500',
      //   name: 'warning500',
      //   component: () => import('@/pages/result/500/index.vue'),
      //   meta: { title: '服务器出错页' },
      // },
      // {
      //   path: 'browser-incompatible',
      //   name: 'warningBrowserIncompatible',
      //   component: () => import('@/pages/result/browser-incompatible/index.vue'),
      //   meta: { title: '浏览器不兼容页' },
      // },
    ],
  },
  {
    path: '/goods',
    name: 'goods',
    component: Layout,
    redirect: '@/pages/Menulist/Menulist.vue',
    meta: { title: '商品管理', icon: 'view-module' },
    children: [
      {
        path: 'menulist',
        name: 'menulist',
        component: () => import('@/pages/Menulist/Menulist.vue'),
        meta: { title: '菜单商品列表' },
      },
      {
        path: 'lease',
        name: 'lease',
        component: () => import('@/pages/lease/lease.vue'),
        meta: { title: '租赁商品管理' },
      },
      {
        path: 'productdata',
        name: 'productdata',
        component: () => import('@/pages/productdata/productdata.vue'),
        meta: { title: '商品数据' },
      },
    ],
  },
  {
    path: '/Leasingmachinemanagement',
    name: 'Leasingmachinemanagement',
    component: Layout,
    redirect: '@/pages/Leasingmachinemanagement/Leasingmachinemanagement.vue',
    meta: { title: '租赁机管理', icon: 'logo-codepen' },
    children: [
      {
        path: 'leasemachine',
        name: 'leasemachine',
        component: () => import('@/pages/Leasingmachinemanagement/Leasingmachinemanagement.vue'),
        meta: { title: '租赁机列表商品管理' },
      }
    ],
  },
  {
    path: '/management',
    name: 'management',
    component: Layout,
    redirect: '@/pages/management/management.vue',
    meta: { title: '房间管理', icon: 'logo-windows' },
    children: [
      {
        path: 'managementlist',
        name: 'managementlist',
        component: () => import('@/pages/management/management.vue'),
        meta: { title: '房间管理列表' },
      }
    ],
  },
  {
    path: '/warehouse',
    name: 'warehouse',
    component: Layout,
    redirect: '@/pages/warehousegoods/warehousegoods.vue',
    meta: { title: '仓库管理', icon: 'home' },
    children: [
      {
        path: 'goods',
        name: 'goods',
        component: () => import('@/pages/warehousegoods/warehousegoods.vue'),
        meta: { title: '货品管理列表' },
      }
    ],
  },
  {
    path: '/managementlist',
    name: 'equipment',
    component: Layout,
    redirect: '@/pages/wequipment/equipment.vue',
    meta: { title: '设备管理', icon: 'lock-off' },
    children: [
      {
        path: 'equipment',
        name: 'equipment',
        component: () => import('@/pages/equipment/equipment.vue'),
        meta: { title: '设备管理列表' },
      }
    ],
  },
  {
    path: '/classification',
    name: 'classification',
    component: Layout,
    redirect: '@/pages/classification/classification.vue',
    meta: { title: '分类管理', icon: 'layers' },
    children: [
      {
        path: 'classificationlist',
        name: 'classificationlist',
        component: () => import('@/pages/classification/Food-category/Food-category.vue'),
        meta: { title: '餐饮分类' },
      },
      {
        path: 'User-label-classification',
        name: 'User-label-classification',
        component: () => import('@/pages/classification/User-label-classification/User-label-classification.vue'),
        meta: { title: '用户标签分类' }
      },
      {
        path: 'Warehouse-goods-classification',
        name: 'Warehouse-goods-classificationn',
        component: () => import('@/pages/classification/Warehouse-goods-classification/Warehouse-goods-classification.vue'),
        meta: { title: '仓库货品分类' }
      },
      {
        path: 'room-category',
        name: 'room-category',
        component: () => import('@/pages/classification/room-category/room-category.vue'),
        meta: { title: '房间分类' }
      },
      {
        path: 'script-classification',
        name: 'script-classification',
        component: () => import('@/pages/classification/script-classification/script-classification.vue'),
        meta: { title: '剧本分类' }
      },
      {
        path: 'goods-classification',
        name: 'goods-classification',
        component: () => import('@/pages/classification/goods-classification/goods-classification.vue'),
        meta: { title: '仓库货品分类' }
      }
    ],
  },
  {
    path: '/undertable-management',
    name: 'undertable',
    component: Layout,
    redirect: '@/pages/undertable/undertable.vue',
    meta: { title: '下桌管理', icon: 'laptop' },
    children: [
      {
        path: 'undertable',
        name: 'undertable',
        component: () => import('@/pages/undertable/undertable.vue'),
        meta: { title: '可视化下桌管理' },
      }
    ],
  },
];
